﻿<div class="Head">
    <!--头部导航 start-->
    <div class="Logo">
        <a href="/">
            <img src="/content/Images/logo.gif"></a>
    </div>
    <div class="Menu">
        <a href="/">首页</a><a href="/Classroom/Search">辅导班</a><a href="/Partner/Center">学习门店</a>
        <a href="/">首页</a><a href="/Classroom/Search">辅导班</a><a href="/Partner/Center">学习门店</a>
    </div>

    <!--搜索框 start-->
    <div class="r_searchLoginBox">
        <div class="search" id="divSearchItem">
            <input class="text" value="" type="text"><input class="submit" value="" type="button">
        </div>
        <script type="text/javascript">
            $(function () {
                var searchItem = $('#divSearchItem');
                $(searchItem).find(':text').bind('focus', function () {
                    var val = $(this).val();
                    if (val == '搜索') {
                        $(this).val('');
                    }
                }).bind('blur', function () {
                    var val = $(this).val();
                    if (val == '') {
                        $(this).val('搜索');
                    }
                }).bind('keydown', function (e) {
                    var e = e || window.event;
                    if (e.keyCode === 13) {
                        (searchItem).find(':button').trigger('click');
                    }
                });
                $(searchItem).find(':button').click(function () {
                    var keyword = $(searchItem).find(':text').val(),
                        ec = encodeURIComponent;
                    location.href = '/Search?keyword=' + ec(keyword);
                });
            });
                </script>
    </div>
    <!--搜索框 end-->

    <!--头部导航 end-->
</div>
